package com.jfinal.ext;

import com.jfinal.render.Render;
import org.beetl.core.Configuration;
import org.beetl.core.GroupTemplate;
import org.beetl.core.resource.WebAppResourceLoader;
import org.beetl.ext.jfinal.BeetlRender;
import org.beetl.ext.jfinal.BeetlRenderFactory;

import java.io.IOException;

/**
 * Created by li on 2016/7/16.
 */
public class MyBeetlRenderFactory extends BeetlRenderFactory {

    @Override
    public Render getRender(String view) {
        BeetlRender render=new BeetlRender(groupTemplate, view);

        return render;
    }

    @Override
    public String getViewExtension() {
        return ".html";
    }
}
